package com.jx.driving.transmission;

import java.io.Serializable;

import com.jx.driving.message.TimeTerminalTransmissionMessage;
import com.jx.driving.protocol.terminal.annotation.ByteAnnotation;
import com.jx.driving.protocol.terminal.annotation.LimitedStringAnnotation;
import com.jx.driving.protocol.terminal.annotation.TerminalAnnotation;

/**
 * 请求身份认证信息消息
 * @author shenliuyang
 *
 * 2016年9月19日上午10:01:21
 */
@TerminalAnnotation
public class Terminal0x0401Transmission extends TimeTerminalTransmissionMessage implements Serializable {
	private static final long serialVersionUID = -4746616036611017104L;

	@ByteAnnotation(order = 1)
	private short type;//请求类型1：指纹；2：二维码；3：声纹；4：人脸图像
	@ByteAnnotation(order = 2)
	private short userType;//请求人员类型 1：教练员；2：考核员；3：安全员；4：学员。
	@LimitedStringAnnotation(value = 18, order = 3)
	private String cardCode;//身份证号码

	public short getType() {
		return type;
	}

	public void setType(short type) {
		this.type = type;
	}

	public String getCardCode() {
		return cardCode;
	}

	public void setCardCode(String cardCode) {
		this.cardCode = cardCode;
	}

	public short getUserType() {
		return userType;
	}

	public void setUserType(short userType) {
		this.userType = userType;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Terminal0x0401Transmission [type=").append(type).append(", userType=").append(userType)
				.append(", cardCode=").append(cardCode).append("]");
		return builder.toString();
	}

}
